﻿using System;

namespace YArchitech.LIB
{
	public class GarageLineSetting
	{
		public int ID { get; set; }

		public string Min { get; set; }

		public string Max { get; set; }

		public int LightCount { get; set; }

		public GarageLineSetting(int id, string min, string max, int lightCount)
		{
			this.ID = id;
			this.Min = min;
			try
			{
				double num = Convert.ToDouble(max);
				if (num > 0.0)
				{
					this.Max = num.ToString();
				}
				else
				{
					this.Max = " ";
				}
			}
			catch (Exception)
			{
				this.Max = " ";
			}
			this.LightCount = lightCount;
		}

		public GarageLineSetting()
		{
		}
	}
}
